package cn.aran.handler;

import cn.aran.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class UserFallBackHandler {
    public static User getUserByIdBlockHandler(@PathVariable Long id, BlockException ex){
        return User.builder().id(-1L).intro("降级").name("流控").build();
    }
}
